<?php defined( '_JEXEC') or die( 'Restricted access'); // No direct access ?>
    <div class="subhead">
        <p>
            <h2>
                Users' feedbacks:
            </h2>
        </p>        
        <p>
            &nbsp;
        </p>
        <table border="1" cellspacing="0" width="100%">
            <tr align="center" bgcolor="#6cb33f">
                <td width="20%">
                    <strong>
                        File
                    </strong>
                </td>
                <td width="60%">
                    <strong>
                        Feedback
                    </strong>
                </td>
                <td width="15%">
                    <strong>
                        Commentor and Date
                    </strong>
                </td>
                <td width="5%">
                    <strong>
                        Action
                    </strong>
                </td>
            </tr>
<?php foreach($this->feedbacks as $feedback): ?>			

            <tr>
                <td>
                    <a href="<?php echo JRoute::_('index.php?option=com_volunteer&view=filedetail&fileid=' . $feedback->file_id ); ?>"><?php echo $feedback->filename ; ?></a>
                </td>
                <td>
                    <?php echo $feedback->comment ; ?>
                </td>
                <td>
                    <?php echo $feedback->name ; ?>, <?php echo $feedback->date ; ?>
                </td>
                <td align="center">
                    <a href="<?php echo JRoute::_('index.php?option=com_volunteer&task=deletefeedback&feedback=' . $feedback->id); ?>" onclick="javascript: return confirm('Delete this feedback?');">Delete</a>
                </td>
            </tr>
<?php endforeach; ?>
		</table>
    </div>